package com.atguigu03.field_method.field.exer1;

/**
 * ClassName: EmployeeTest
 * Description:
 *并在main方法中，创建2个员工对象，并为属性赋值，
 * @Author liu
 * @Create 2024/8/18 14:19
 * @Version 1.0
 */

public class EmployeeTest {
    public static void main(String[] args) {
        Employee p1 = new Employee();
        p1.id = "aa111";
        p1.age = 20;
        p1.name ="lucy";
        p1.salary = 8323.3;
        System.out.println("id = " + p1.id + ",name = " + p1.name +
                ", age = " + p1.age + ", salary = " + p1.salary);

        Employee p2 = new Employee();
        p2.id = "aad111";
        p2.age = 20;
        p2.name ="nike";
        p2.salary = 8323.3;
        System.out.println("id = " + p2.id + ",name = " + p2.name +
                ", age = " + p2.age + ", salary = " + p2.salary);


    }
}
